<{include file="public/header.html"}>
<script type="text/javascript" src="<{$smarty.const.STATIC_COMPONENT_URL}>js/common.js"></script>

<div class="container">
    	<div class="signup">
            <div class="signup-title"><span>Update Garage</span></div>
            <div class="step3">
            	<form action="/garage/update/id/<{$garage->id}>" method="post" >
            		<input type="hidden" value="1" name="act" />
            		<input type="hidden" value="<{$garage->id}>" name="garage_id" />
            		<div class="row">
                    	<label>Garage</label><input type="text" name="title" value="<{$garage->title}>" />
                    </div>
                    <div class="row">
                    	<label>Category</label>
                    	<select name="category">
                    	<{while $category->fetch()}>
                    		<option value="<{$category->id}>" <{if $category->id == $garage->category_id}>selected<{/if}> ><{$category->name}></option>
                    	<{/while}>
                    	</select>
                    </div>
                    <div class="row">
                    	<label>Website Link</label><input type="text" name="link" value="<{$garage->link}>" size="40" />
                    </div>
                    <div class="row">
                    	<label>Package</label>
                    	<select name="package">
                   		<{while $package->fetch()}>
                    		<option value="<{$package->id}>" <{if $package->id == $garage->package_id}>selected<{/if}> ><{$package->name}></option>
                    	<{/while}>
                    	</select>
                    </div>
                    <div class="row">
                    	<label>Advertisement</label>
                    	<select name="advertise">
                   		<{while $advertise->fetch()}>
                   		<option value="<{$advertise->id}>" <{if $advertise->id == $garage->ad_id}>selected<{/if}> ><{$advertise->name}></option>
                    	<{/while}>
                    	</select>
                    </div>
                    <div class="row">
                    	<label>Description</label><textarea rows="10" cols="50" name="desc" ><{$garage->description}></textarea>
                    </div>
                    <div class="row" style="margin: 10px 0 0 300px">
                    	<input type="image" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/btnContinue.jpg" class="btnContinue" style="float: left" /></a>
                		<a href="<{$smarty.const.APPLICATION_URL}>/garage"><img src="<{$smarty.const.STATIC_COMPONENT_URL}>images/btnCancel.jpg" /></a>
                    </div>
            	</form>
            </div>
        </div>
    </div><!--end container-->
    <div class="clear"></div>
<{include file="public/footer.html"}>